#!/bin/bash

# 查找包含 'technology' 关键字的进程，并获取进程号
PIDS=$(ps -ef | grep 'technology' | awk '{print $2}')

# 检查是否有匹配的进程
if [ -z "$PIDS" ]; then
  echo "No matching processes found"
else
  # 循环遍历进程号并 kill -9 进程
  for pid in $PIDS; do
    echo "Killing process $pid"
    kill -9 "$pid"
  done
fi